//
//  JCChoiseImageView.m
//  SquashSpark
//
//  Created by 郭吉成 on 2017/12/6.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import "JCChoiseImageView.h"

@interface JCChoiseImageView()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *takePhotoBtn;
@property (weak, nonatomic) IBOutlet UIButton *libraryBtn;

@end

@implementation JCChoiseImageView

- (IBAction)takePhotoAction:(id)sender {
    if (_takePhotoHandle) {
        _takePhotoHandle();
    }
}

- (IBAction)libraryAction:(UIButton *)sender {
    if (_LibraryPhotoHandle) {
        _LibraryPhotoHandle();
    }
}


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    [self initCode];
}

- (void)initCode{
    self.layer.cornerRadius = 3;
    self.layer.borderColor = [UIColor yellowColor].CGColor;
    self.layer.borderWidth = 1.5;
}

@end
